import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';

export const columns: BasicColumn[] = [
    {
    title: 'xml名字',
    dataIndex: 'xmlName'
   },
   {
    title: 'xml类型',
    dataIndex: 'xmlType'
   },
   {
    title: '是否启用 ',
    dataIndex: 'delFlag'
   },
   {
    title: '设备名称',
    dataIndex: 'equipmentname'
   },
   {
    title: '分系统名称',
    dataIndex: 'subsystemname'
   },
   {
    title: '设备代号',
    dataIndex: 'equipmentcode'
   },
   {
    title: '数据采集频率',
    dataIndex: 'grabf'
   },
   {
    title: '图像合并数据数量',
    dataIndex: 'maxPacketNum'
   },
   {
    title: '复帧配置',
    dataIndex: 'kafkaTableName'
   },
   {
    title: '图像帧解析方案，1无容器，2高微柜',
    dataIndex: 'imageParseMethod'
   },
   {
    title: '图像数据库的长度',
    dataIndex: 'imageDataLen'
   },
   {
    title: 'devicename',
    dataIndex: 'deviceName'
   },
   {
    title: '二级索引的segment',
    dataIndex: 'secondSegment'
   },
   {
    title: '数据segment',
    dataIndex: 'dataSegment'
   },
   {
    title: '图像segment',
    dataIndex: 'imgSegment'
   },
   {
    title: '包名称',
    dataIndex: 'packageName'
   },
   {
    title: '舱段或飞行器标识（产生舱段）',
    dataIndex: 'sc'
   },
   {
    title: '文件标志',
    dataIndex: 'dty'
   },
   {
    title: '文件名的apid',
    dataIndex: 'apid'
   },
   {
    title: '文件名的ssid',
    dataIndex: 'ssid'
   },
   {
    title: '文件名的ssty',
    dataIndex: 'sdty'
   },
];

export const searchFormSchema: FormSchema[] = [
 {
    label: 'xml名字',
    field: 'xmlName',
    component: 'Input'
  },
 {
    label: 'xml类型',
    field: 'xmlType',
    component: 'Input'
  },
];

export const formSchema: FormSchema[] = [
  // TODO 主键隐藏字段，目前写死为ID
  {label: '', field: 'id', component: 'Input', show: false},
  {
    label: 'xml名字',
    field: 'xmlName',
    component: 'Input',
  },
  {
    label: 'xml类型',
    field: 'xmlType',
    component: 'Input',
  },
  {
    label: '是否启用 ',
    field: 'delFlag',
    component: 'Input',
  },
  {
    label: '设备名称',
    field: 'equipmentname',
    component: 'Input',
  },
  {
    label: '分系统名称',
    field: 'subsystemname',
    component: 'Input',
  },
  {
    label: '设备代号',
    field: 'equipmentcode',
    component: 'Input',
  },
  {
    label: '数据采集频率',
    field: 'grabf',
    component: 'Input',
  },
  {
    label: '图像合并数据数量',
    field: 'maxPacketNum',
    component: 'Input',
  },
  {
    label: '复帧配置',
    field: 'kafkaTableName',
    component: 'Input',
  },
  {
    label: '图像帧解析方案，1无容器，2高微柜',
    field: 'imageParseMethod',
    component: 'Input',
  },
  {
    label: '图像数据库的长度',
    field: 'imageDataLen',
    component: 'Input',
  },
  {
    label: 'devicename',
    field: 'deviceName',
    component: 'Input',
  },
  {
    label: '二级索引的segment',
    field: 'secondSegment',
    component: 'Input',
  },
  {
    label: '数据segment',
    field: 'dataSegment',
    component: 'Input',
  },
  {
    label: '图像segment',
    field: 'imgSegment',
    component: 'Input',
  },
  {
    label: '包名称',
    field: 'packageName',
    component: 'Input',
  },
  {
    label: '舱段或飞行器标识（产生舱段）',
    field: 'sc',
    component: 'Input',
  },
  {
    label: '文件标志',
    field: 'dty',
    component: 'Input',
  },
  {
    label: '文件名的apid',
    field: 'apid',
    component: 'Input',
  },
  {
    label: '文件名的ssid',
    field: 'ssid',
    component: 'Input',
  },
  {
    label: '文件名的ssty',
    field: 'sdty',
    component: 'Input',
  },
];
